﻿using System;
using System.ComponentModel.Composition;
using System.Linq;
using Microsoft.VisualStudio.TeamArchitect.PowerTools.Ultimate.Features;
using Microsoft.VisualStudio.TeamArchitect.PowerTools.Ultimate.Features.Diagnostics;

namespace YasharEl.Infrastructure.ArchitectureTools.AppModeler
{
	[LaunchPoint(Id = "BoundedContextTemplate")]
	public partial class BoundedContextTemplate : VsTemplateLaunchPoint
	{
	    public const string TemplateName = "Bounded Context Component";
	    public const string TemplateCategory = "Modeling";
		public const string TemplateId = "";

		[ImportingConstructor]
	    public BoundedContextTemplate(IFeatureManager featureManager)
	        : base(featureManager, TemplateId, TemplateName, TemplateCategory)
	    {
		}

		public override FeatureInstantiation FeatureInstantiation
		{
			get { return FeatureInstantiation.None; }
		}

		public override bool IsDefaultTemplate
		{
			get { return false; }
		}

		public override void OnBeforeUnfoldTemplate()
		{
			this.OnUnfoldTemplate("CreateSolutionFolderCommandBinding");
		}
	}
}
